package com.iwdnb.gkgz.job;

import com.iwdnb.bmnf.common.model.UserContext;
import com.iwdnb.bmnf.common.utils.UserContextUtil;
import com.iwdnb.gkgz.application.service.StockPredictionService;
import com.iwdnb.job.annotation.Job;
import com.iwdnb.job.handler.BaseJobHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 股票动态预测
 */
@Slf4j
//@Job(cron = "0 0 0 * * ?")
public class StockDynamicPredictionJob extends BaseJobHandler {

    @Autowired
    private StockPredictionService stockPredictionService;

    @Override
    public boolean doProcess(String parameter) {
        UserContext userContext = new UserContext();
        userContext.setAppCode("0");
        userContext.setTenantCode("0");
        UserContextUtil.init(userContext);
        //stockPredictionService.dynamicPrediction();
        return true;
    }

}
